﻿@model FriendAD.web.Areas.Member.Models.LoginModelView

@{
    ViewBag.Title = "登录";
}

@Styles.Render("~/Content/flexslider")
<script type="text/javascript">
    $(function () {
        $(".flexslider").flexslider({
            slideshowSpeed: 4000, //展示时间间隔ms
            animationSpeed: 400, //滚动时间ms
            animation: "slide",
            controlNav: true,//控制菜单
            directionNav: false,//左右控制按钮
            touch: true //是否支持触屏滑动
        });
    });
</script>
<div class="topshow" id="topshow">
    <div class="flexslider">
        <ul class="slides">
            <li>
                <img src="~/Content/img/ss1.jpg" />
            </li>
            <li>
                <img src="~/Content/img/ss2.jpg" />
            </li>
            <li>
                <img src="~/Content/img/ss3.jpg" />
            </li>
        </ul>
    </div>
</div>
<div class="blank10"></div>
<div class="loginform">
    <div class="form-horizontal">
        <hr />
        @using (Html.BeginForm("login","home", new { returnurl= ViewBag.ReturnUrl },FormMethod.Post))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
            <div class="form-group">
                @Html.EditorFor(model => model.Accounts, new { htmlAttributes = new { @class = "form-control", placeholder = "用户名" } })
                @Html.ValidationMessageFor(model => model.Accounts, "", new { @class = "text-danger" })

            </div>

            <div class="form-group">
                @Html.EditorFor(model => model.Password, new { htmlAttributes = new { @class = "form-control", placeholder = "密码" } })
                @Html.ValidationMessageFor(model => model.Password, "", new { @class = "text-danger" })

            </div>
            <div class="btn_box">
                <input type="submit" class="button" value="立即登录">
            </div>
            <div class="blank10"></div>
            <div class="btn_boxx">
                <input name="signup" type="submit" class="button" formaction="@Url.Action("reg", "home", routeValues: new { Area = "Member" })" value="注册帐号">
            </div>
        }
    </div>
</div>
